import { createSSRApp } from 'vue';
import App from './App.vue';
import * as Pinia from 'pinia';
import 'virtual:uno.css';

uni.$zp = {
  config: {
    'empty-view-img': 'https://mingtu-resources.oss-cn-shenzhen.aliyuncs.com/mtym-app-assets/no-data.png',
    'empty-view-img-style': { width: '508rpx', height: '300rpx' },
    'empty-view-title-style': { 'font-size': '28rpx', color: '#727687' }
  }
};

export function createApp() {
  const app = createSSRApp(App);
  app.use(Pinia.createPinia());
  return {
    app,
    Pinia
  };
}
